From: Florian Müllner Date: Fri, 16 Feb 2024 23:35:39 +0000 (+0100) Subject: main: Remove timestamp parameter from popModal() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~1^2~156 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3b0e1a6b5ad8be69f684114b834b84f2ebef7b3c;p=gnome-shell.git main: Remove timestamp parameter from popModal() It has been unused since the move to Clutter.grab() in commit f4cae72d17af. Part-of: --- diff --git a/js/ui/main.js b/js/ui/main.js index a856c5695..cfb6d8735 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -714,17 +714,9 @@ export function pushModal(actor, params = {}) { * the topmost invocation, then the focus will be restored to the * previous focus at the time when pushModal() was invoked. * - * `timestamp` is optionally used to associate the call with a specific user - * initiated event. If not provided then the value of - * global.get_current_time() is assumed. - * * @param {Clutter.Grab} grab - the grab given by pushModal() - * @param {number=} timestamp - optional timestamp */ -export function popModal(grab, timestamp) { - if (timestamp === undefined) - timestamp = global.get_current_time(); - +export function popModal(grab) { let focusIndex = _findModal(grab); if (focusIndex < 0) { global.stage.set_key_focus(null);